package com.lt.lumentracks.entity.dto.user;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserAddDTO {

    @NotBlank(message = "用户名不能为空")
    private String username; // 用户名
    private String email; // 邮箱

    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone; // 电话号码

    @NotBlank(message = "密码不能为空")
    private String password; // 密码

}
